<?php
namespace app\rabbitmq\controller;

use RabbitMq\RabbitMq;

class Index
{
    public function index()
    {
        return "我是rabbitmq模块";
    }

    public function rabbit() {
        $rabbit = RabbitMq::getInstance();
        if($rabbit->connect()){
            echo '连接成功';
            $channel = new \AMQPChannel($rabbit);
        }
    }

}
